using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;
using VOL.demo.IRepositories;

namespace VOL.demo.Services
{
    public partial class Sys_UserService
    {
        /// <summary>
        /// 获取用户下拉选项
        /// </summary>
        /// <returns>用户列表</returns>
        public async Task<List<Sys_User>> GetUserOptionsAsync()
        {
            return await repository.GetUserOptionsAsync();
        }

        /// <summary>
        /// 根据用户ID获取用户信息
        /// </summary>
        /// <param name="userId">用户ID</param>
        /// <returns>用户信息</returns>
        public async Task<Sys_User> GetUserByIdAsync(int userId)
        {
            return await repository.GetUserByIdAsync(userId);
        }
    }
}
